package com.itqf;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/19
 * @Time: 下午5:13
 */
public class TestLog4J {
     Log log = LogFactory.getLog(TestLog4J.class);

     public  void  test(String name){
         if (1==1){
             log.debug("1==1"+name);
         }
         log.trace("trace");
         log.debug("debug");
         log.info("info");
         log.warn("warn");
         log.error("error");
         log.fatal("fatal");
     }

    public  static  void  main(String[]args){
        TestLog4J log4J = new TestLog4J();
        log4J.test("admin");

    }
}
